<template>
  <div>
      <div class="title">周末去哪儿</div>
    <ul>
      <li class="item border-bottom" v-for="item of list" :key="item.id">
        <div class="pic">
          <img :src="item.imgUrl" alt="" />
        </div>
        <div class="info">
          <p class="ititle">{{ item.title }}</p>
          <p class="desc">{{ item.desc }}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "Weekend",
  props: {
    list: Array
  }
};
</script>

<style scoped>
.title{
    height: 0.8rem;
    line-height: 0.8rem;
    text-indent: .2rem;
    background: #eee;
}
.item {
  overflow: hidden;
  height: 0;
  padding-bottom: 55%;
}
.pic{
    padding: .1rem;
}
.pic img {
  width: 100%;
}
.info {
  padding-left: 0.1rem;
  min-width: 0;
}
.ititle {
  line-height: 0.6rem;
  font-size: 0.35rem;
}
.desc {
  margin-top: 0.1rem;
  line-height: 0.4rem;
  color: #aaa;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
</style>